package com.masterlu.thread;

import java.util.function.Supplier;

public class ThreadLocalDemo {

    ThreadLocal<User> userThreadLocal = new ThreadLocal<>();



    public  void orderHandler() {

        User user = new User();
        user.setAge(10);
        userThreadLocal.set(user);


        User user1 = new User();
        user1.setAge(20);
        ThreadLocal<User> userThreadLocal1 = new ThreadLocal<>();
        Thread.currentThread();


    }
}
